package org.sixtynine.stock.service;

/**
 * @author Thilan
 *
 */

import java.util.Date;
import java.util.List;

import org.sixtynine.stock.dto.GridPramDTO;
import org.sixtynine.stock.dto.Page;
import org.sixtynine.stock.entity.AnnualySharePriceData;

public interface AnnualPriceDataService {

	AnnualySharePriceData findById(int id);

	void saveAnnualySharePriceData(AnnualySharePriceData annualShareData);

	void deleteAnnualySharePriceData(int id);

	List<AnnualySharePriceData> findAnnualySharePriceData(int companyId);

	List<AnnualySharePriceData> searchAnnualySharePriceData(int companyId,
			Date fromYear, Date toYear, String orderBy, String orderByName);

	Page<AnnualySharePriceData> searchAnnualySharePriceData(int companyId,
			Date fromYear, Date toYear, String orderBy, String orderByName,
			GridPramDTO gridPramDTO);

	public void deleteAnnualySharePriceData(int companyId, Date fromDate,
			Date toDate);
}
